{% extends 'title.html' %}

{% block content %}
    {% load static %}
    <div style="text-align: center;">
        <form action="/login/" method="post">
            {% csrf_token %}


            <div class="account text-center" style="margin-top: 30px">
                <form>
                    <h2>用户登录</h2>
                    <div class="form-group">
                        <label for="exampleInputEmail1">账号</label>
                        <input type="text" name="name" class="form-control" id="exampleInputEmail1" placeholder="账号">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">密码</label>
                        <input type="password" name="pwd" class="form-control" id="exampleInputPassword1"
                               placeholder="密码">
                    </div>

                    <div>
                        <div class="col-lg-7">
                            <label for="exampleInputEmail1">验证码</label>
                            <div class="row">
                                <input type="text" name="yzm" class="form-control"
                                       placeholder="验证码">
                            </div>
                        </div>
                        <div class="col-lg-5">
                            <div class="row">
                            <label for="exampleInputEmail1">图片</label>
                            <img src="/image/code/" id="code_img" style="height: 35px;width: 170px;">
                            </div>
                        </div>
                    </div>

                    <p class="warning" style="color: red; font-size: 12px">{{ err }}</p>
                    <button type="submit" class="btn btn-primary" style="margin-top: 20px">提交</button>
                </form>
            </div>


        </form>
    </div>

{% endblock %}

